<?php

namespace User\Controller;

use Cf\Mvc\Controller\Action;
use Zend\View\Model\ViewModel;

class IndexController extends Action
{

    public function indexAction()
    {
        return new ViewModel();
    }

    public function logoutAction()
    {
        $this->getFrontSessionStorage()->forgetMe();
        $this->getFrontAuthService()->clearIdentity();

        $this->flashmessenger()->addMessage("You've been logged out");
        return $this->redirect()->toRoute('guest');
    }

}

